<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="header.jsp">
	<jsp:param name="title" value="编辑管理员"/>
</jsp:include>
<form action="${config.site_root}/admin?c=admin&a=manage" method="post">
<table cellpadding="2" cellspacing="1" class="table_form">
	<caption>编辑管理员</caption>
	<tr>
		<th width="10%"><strong>管理员名称</strong></th>	
		<td>${member.username}</td>
	</tr>
	<tr>
		<th width="10%"><strong>强制QQ登陆</strong></th>	
		<td><input type="radio" name="forceQq" value="0"<c:if test="${member.force_qq ne 1}"> checked</c:if> style="vertical-align:middle;">否 <input type="radio" name="forceQq" value="1"<c:if test="${member.force_qq eq 1}"> checked</c:if> style="vertical-align:middle;">是</td>
	</tr>
	<tr>
		<th width="10%"><strong>是否是自由账号</strong></th>	
		<td><input type="radio" name="isfree" value="0"<c:if test="${member.isfree ne 1}"> checked</c:if> checked{/if} style="vertical-align:middle;">否 <input type="radio" name="isfree" value="1"<c:if test="${member.isfree eq 1}"> checked</c:if> style="vertical-align:middle;">是</td>
	</tr>
	<tr>
		<th width="10%"><strong>用户组</strong></th>	
		<td>
			<select name="groupid">
				<c:forEach items="${requestScope.groups}" var="group">
				<option value="${group.key}"<c:if test="${group.key eq member.groupid}"> selected</c:if>>${group.value}</option>
				</c:forEach>
			</select>
		</td>
	</tr>
	<tr>
		<th width="10%"></th>	
		<td><input type="submit" name="doedit" value="确定" class="button_style"></td>
	</tr>
</table>
	<input type="hidden" name="userid" value="${member.userid}">
</form>

<form action="${config.site_root}/admin?c=admin&a=manage" method="post" name="myform">
<table cellpadding="2" cellspacing="1" class="table_form">
	<caption>重置密码</caption>
	<tr>
		<th width="10%"><strong>密码</strong></th>	
		<td><input type="password" name="password"></td>
	</tr>
	<tr>
		<th width="10%"><strong>确认密码</strong></th>	
		<td><input type="password" name="password_confirm"></td>
	</tr>
	<tr>
		<th width="10%"></th>	
		<td><input type="submit" name="doeditpass" value="确定" class="button_style"></td>
	</tr>
</table>
	<input type="hidden" name="userid" value="{$member.userid}">
</form>
<jsp:include page="footer.jsp"/>